package com.zyz.N_反射机制.基本应用.读取注解信息;

/**
 * @author: vick
 * @Date: 2025/4/17
 * @Description:
 * @version: 1.0
 */
@Table("t_user")
public class User {

    @Column(columnName = "uid", columnType = "int")
    private int id;
    @Column(columnName = "uname", columnType = "varchar")
    private String name;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Override
    public String toString() {
        return "User{" +
                "id=" + id +
                ", name='" + name + '\'' +
                '}';
    }
}
